<template>
  <el-card>
    <div class="box">
      <img :src="userStore.avatar" class="avatar" alt="">
      <div class="box_bottom">
        <h3 class="title">{{ time }}好,{{ userStore.username }}</h3>
        <p class="subtitle">{{ setting.title }}</p>
      </div>
    </div>

  </el-card>
  <div class="bottom">
    <svg-icon name="welcome" width="500px" height="500px"></svg-icon>
  </div>

</template>
<script setup lang='ts' name='home'>
import setting from '@/setting';
import useUserStore from '@/store/modules/user';
import { getTime } from '@/utils/time';
let time = getTime()
let userStore = useUserStore()
</script>


<style scoped lang="scss">
.box {
  display: flex;
  .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }

  .box_bottom {
    margin-top: 20px;
    margin-left: 20px;
    .title {
      font-size: 20px;
      margin-bottom: 20px;
      font-weight: 900;
    }
    .subtitle {
      color: gold;
      font-style: italic;
    }
  }
}

.bottom {
  display: flex;
  justify-content: center;
}
</style>